package com.frogs.ucenter.dao.ibatis;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.ucenter.dao.WechatUserBaseInfoDao;
import com.frogs.ucenter.entity.WechatUserBaseInfo;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("wechatUserBaseInfoDao")
public class WechatUserBaseInfoDaoImpl extends BaseDaoIbatis<WechatUserBaseInfo> implements WechatUserBaseInfoDao {

    public WechatUserBaseInfoDaoImpl() {
        super();
        setNameSpace( "wechat_user_base_info" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }

	@Override
	public List<String> getMyAttentionUserNameByUserIds(Map<String, Object> map) {
		return getSqlMapClientTemplate().queryForList(getNameSpace()+".getMyAttentionUserNameByUserIds", map);
	}
}